 1、输入要过生日的人的名字，唱生日歌给他听
# def birthday_song(name):
#  print(f"祝{name}生日快乐")
#  print(f"祝{name}生日快乐")
#  print(f"祝{name}幸福祝{name}健康")
#  print(f"祝{name}前途光明")
#  print(f"祝{name}生日快乐")
#  print(f"祝{name}生日快#乐")
#  print(f"祝{name}幸福祝{name}健康")
#  print(f"有个温暖家庭")
#  print(f"Happy birthday to {name}")
#  print(f"Happy birthday to {name}")
#  print(f"Happy birthday happy birthday")
#  print(f"Happy birthday to {name}")
#  print(f"Happy birthday to {name}")
#  print(f"Happy birthday to {name}")
#  print(f"Happy birthday happy birthday")
#  print(f"Happy birthday to {name}")
#  print(f"祝{name}生日快乐")
#  print(f"祝{name}生日快乐")
#  print(f"祝{name}幸福祝{name}健康")
#  print(f"祝{name}前途光明")
#  print(f"祝{name}生日快乐")
#  print(f"祝{name}生日快乐")
#  print(f"祝{name}幸福祝{name}健康")
#  print(f"有个温暖家庭")
# birthday_song("李孺禹")
# # 2、有这样的一个列表，深度不可知，但最多只会到二维数组，我想要把这个列表从左到右拼接成一个新的列表，且顺序不变
# 原来列表：[13,451563156,[15123,1231561],1561]
# 发生改变：[13,451563156,15123,1231561,1561]
# list1 = []
# def getList(List):
#     for i in List:
#         if isinstance(i,list):
#             getList(i)
#         else:
#             list1.append(i)
#     return list1
# reallyList=[13, 451563156, [15123, 1231561], 1561]
# print(getList(reallyList))
# 3、接收n个数字，求这些参数数字的和
# def calculate_sum(*nums):
#     total = sum(nums)
#     return total
# result = calculate_sum(1,2,3,4,5,6)
# print("总和:",result)
# result = calculate_sum(10,20,30,40,50)
# print("总和:",result)
# 4、输入任意个字符串,分别实现从小到大输出和从大到小输出





